import turtle

# 设置绘图速度
turtle.speed(0)


# 画猫咪的脸
def draw_face():
    turtle.penup()
    turtle.goto(0, -100)
    turtle.pendown()
    turtle.circle(100)


# 画猫咪的耳朵
def draw_ears():
    # 左耳
    turtle.penup()
    turtle.goto(-50, 0)
    turtle.pendown()
    turtle.goto(-90, 160)
    turtle.goto(-30, 80)

    # 右耳
    turtle.penup()
    turtle.goto(50, 0)
    turtle.pendown()
    turtle.goto(90, 160)
    turtle.goto(30, 80)


# 画猫咪的眼睛
def draw_eyes():
    # 左眼
    turtle.penup()
    turtle.goto(-40, 20)
    turtle.pendown()
    turtle.fillcolor("black")
    turtle.begin_fill()
    turtle.circle(10)
    turtle.end_fill()

    # 右眼
    turtle.penup()
    turtle.goto(40, 20)
    turtle.pendown()
    turtle.begin_fill()
    turtle.circle(10)
    turtle.end_fill()


# 主函数
def main():
    draw_face()
    draw_ears()
    draw_eyes()
    turtle.done()


main()